# import json
# import os
#
# import config
#
# BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# print(f"路径：{BASE_DIR}")
#
#
# def BuildData():
#     file = config.BASE_DIR+ "/data/mobile_no.json"
#     with open(file, encoding="utf-8") as f:
#         receivefile = json.load(f)
#         mobile_nos = receivefile.get("mobile_no")
#
#     data = []
#     for i in mobile_nos:
#         data.append(i)
#     return
#
# datajson = BuildData()
# print(datajson)
import json


# import random
# import hashlib
#
#
# def bParams(mobileNo):
#     mobileNo = str(mobileNo)
#     pwd = mobileNo[-6:]
#     # 生成三位随机数
#     rand = str(random.randint(100, 999))
#     # MD5加密
#
#     md5 = hashlib.md5()
#     md5.update(pwd.encode("utf-8"))
#     md5_pwd1 = md5.hexdigest()
#     pwd2 = pwd + rand
#     md5.update(pwd2.encode("utf-8"))
#     md5_pwd2 = md5.hexdigest()
#     md5_pwd = md5_pwd1 + md5_pwd2
#     print(md5_pwd)
#
#     params = [{
#         "desc": "登录成功",
#         "param": {
#             "loginInfo": {
#                 "password": md5_pwd,
#                 "mobileNo": mobileNo,
#                 "deviceId": "D414C492-80A2-4615-A640-B1E180036031",
#                 "clientType": "ios",
#                 "userAgent": "KKLOnLine/5.28.0 (iPhone; iOS 13.6; Scale/3.00; appVersion 5.28.0; XHX)",
#                 "loginIp": "172.17.2.49"
#             }
#         },
#         "testexpect": "操作成功"
#     }]
#     return params
#
# result = bParams(13221085986)  # 调用函数
from datetime import datetime, timedelta

start_time = (datetime.now() + timedelta(minutes=1)).timestamp()
start_time_millis = int(start_time * 1000)
print(start_time_millis)

from datetime import datetime, timedelta

start_time = int((datetime.now() + timedelta(minutes=1)).timestamp() * 1000)

print(start_time)
print("10081")
print("1")
